/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jesstalk.chatsystem.chatresponse;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Ecky
 */
public class ChatResponse {
    
    public List<CategoryInfo> updatedCategs;
    public List<Integer> deletedCategIds;
    public List<RoomInfo> updatedRooms;
    public List<String> deletedRooms;
    public List<UserInfo> updatedFriends;
    public List<String> deletedFriends;
    public List<RoomInfo> updatedOpenedRooms;
    public List<String> closedOpenedRooms;
    public List<MessageInfo> updatedPvChats;
    public List<ErrorInfo> errors;

    public void addError(ErrorInfo err) {
        if(errors == null) errors = new ArrayList<ErrorInfo>();
        errors.add(err);
    }
}
